@import '@/styles/common/variables.scss';
#gallery.gallery{
   height: 100%;
   display: flex;
   align-items: flex-start;
   justify-content: flex-start;
  .gallery_content{
    background-color: #ffffff;
    margin: 24px 24px 24px 16px;
    width: calc(100% - 384px);
    @include respond('1440'){
      width: calc(100% - 334px);
    }
    .gallery_guide{
      // padding: 16px 24px;
      // height: 54px;
      padding: 0 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #EBEAEA;
      >.gallery_btn{
        padding-right: 16px;   
        position: relative;
        top: 2px;
        i{
          cursor: pointer;
          font-size: 22px;
          color: #ebeaea;
          &:hover{
            color: #303030;
          }
        }
        i.not_allow {cursor: not-allowed;color: #ebeaea;}
      }
      .gallery_folder{
        white-space: nowrap;
        width: calc(100% - 126px);
        overflow: hidden;
        padding: 16px 24px 16px 0;
       
        span{
          color: #666666;
          font-size: 14px;
          margin-right: 40px;
          position: relative;
          cursor: pointer;
          &:last-of-type{
            margin-right: 0;
          }
          &.active,
          &:hover{
            color:#303030 ;
            font-weight: bolder;
            // &:after{
            //   content: '';
            //   background-color: #303030;
            //   width: 100%;
            //   height: 2px;
            //   position: absolute;
            //   bottom: -17px;
            //   left: 0;
            // }
          }
        }
      }
      .gallery_folder_btn{
        position: relative;
        padding-left: 16px;
        >span{
          margin-right: 16px;
          cursor: pointer;
          i{outline: none;}
          
        }
        i.not_allow {cursor: not-allowed;color: #ebeaea;  font-size: 14px;  margin-right: 16px;}
        >i{
          font-size: 12px;
          cursor: pointer;
          &:first-of-type{
            margin-right: 24px;
            font-size: 22px;
            position: relative;
            top: 2px;
            color: #ebeaea;
            &:hover{
              color: #303030;
            }
            &.not_allow{
              &:hover{
                color: #ebeaea;
              }
            }
          }
        }
       
      }
    }
    .gallery_form{
      padding: 24px 24px 0;
      >.el-form {
        .el-input{
          width: 200px;
        }
      }
      .btnContainer{
        margin: 24px 0;
      }
    }
    .gallery_no_data{
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      .gallery_no_data_svg{
        width: 240px;
        height: 190px;
      }
      >p{
        color: #CCCCCC;
        font-size: 14px;
        margin-top: 16px;
      }
    }
    .gallery_data{
      margin: 0 0px 0px 24px;
      overflow: auto;
      .gallery_data_item{
        width: 10vw;
        float: left;
        margin-right: 1.18vw;
        position: relative;
        margin-bottom: 24px;
        cursor: pointer;
        .el-image{
          width: 10vw;
          height: 10vw;
          border: 1px solid #EBEAEA ;
          border-radius: 4px;
         
          img{
            object-fit: contain;
            transition: transform .6s ease-out;
          }
          &.active{
            border-color: #303030;
          }
        }
        .el-checkbox{
          position: absolute;
          top: 5px;
          right: 8px;
        }
        >p{
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          color: #666666;
          font-size: 14px;
        }
        &:hover{
          .el-image{
            border-color: #303030;
            img{
              transform: scale(1.12, 1.12);
            }
            
          }
        }
        @include respond('1280'){
          margin-right: 24px;
        }
        @include respond('1440'){
          width: 140px;
          margin-right: 21px;
          .el-image{
            width: 140px;
            height: 140px;
            
          }
        }
      }
    }
    
  }
  .gallery_detail{
    position: relative;
    background-color: #ffffff;
    margin: 24px 0 24px 24px;
    width: 320px;
    @include respond('1440'){
      width: 270px;
    }
    >p{
      height: 54px;
      line-height: 54px;
      color: #303030;
      font-size: 14px;
      border-bottom: 1px solid #EBEAEA;
      padding-left: 24px;
    }
    .el-form-item__content{
      width: 100%;
      height: 54px;
      line-height: 54px;
    }
    .gallery_item_detail{
      padding: 16px 24px  0px;
      overflow: auto;
      .el-image{
        width: 272px;
        height: 272px;
        border: 1px solid #EBEAEA;
        border-radius: 4px;
        img{
          object-fit: contain;
        }
        @include respond('1440'){
          width: 222px;
          height: 222px;
        }
      }
      .gallery_item_image{
        color: #666666;
        font-size: 14px;
        margin-top: 24px;
        margin-bottom: 6px;
      }
      .el-textarea{
        margin-bottom: 24px;
      }
      .gallery_detail_params{
        display: flex;
        justify-content: space-between;
        margin-bottom: 16px;
        color: #666666;
        font-size: 14px;
      }
    }
    .gallery_item_btn{
      position: absolute;
      width: 100%;
      bottom: 0px;
      padding: 16px 24px 0;
      background-color: #ffffff;
      .el-button{
        width: 100%;
        margin-left: 0;
        margin-bottom: 16px;
      }
    }

  }
  
}
.gallery_folder_btn_edit{
  min-width: 104px;
  background-color: #ffffff;
  text-align: center;
  padding: 6px 0px;
  border-radius: 4px;
  >p{
    height: 32px;
    line-height: 32px;
    color: #666666;
    font-size: 14px;
    cursor: pointer;
    &:hover{
      background-color: #F9F9F9;
      color: #303030;
    }
  }

}
#gallery_upload{
  .el-form-item__label{
    width: 78px;
    white-space: nowrap;
  }
  .el-form-item__content{
    width: calc(100% - 78px);
  }
  .el-form-item{
    margin-bottom: 24px;
    height: calc(100%);
    padding: 0 24px;
  }
  .gallery_image_container{
    overflow: auto;
    height: 478px;
    padding-left: 24px;
  }
  .gallery_uploader.gallery_image{
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    .el-upload{
      margin-top: 16px;
    }
    .el-button {
      width: 112px;
      position: relative;
      top: 0;
      right: 0;
    }
    >p{
      color: #CCCCCC;
      font-size: 14px;
      margin-top: 16px;
      padding: 0 24px;
    }
  }
  .gallery_image{
    width: 264px;
    height: 264px;
    float: left;
    text-align: center;
    position: relative;
    margin-right: 24px;
    border-radius: 8px;
    border: 1px dashed #CCCCCC;
    margin-bottom: 21px;
    &:nth-of-type(4n){
      margin-right: 0;
    }
    .el-image{
      width: 100%;
      height: 100%;
      border-radius: 8px;
      img{
        object-fit: contain;
      }
    }
    .el-button{
      position: absolute;
      top: 8px;
      right: 8px;
    }
  }
}

#folder{
  .el-dialog__body{
    p{
      color: #303030;
      font-size: 14px;
      margin-bottom: 8px;
    }
    .el-input .el-input__inner{
      height: 32px;
      line-height: 32px;
    }
    .el-form-item__content{
      width: 100%;
    }
  }
}